﻿@model TP_Final.Empleado

@{
    ViewBag.Title = "Crear Empleado";
}

<h2>Crear Empleado</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <form role="form" action="@Url.Action("CrearEmpleado", "Empleado")" method="POST">
        <div class="form-group">
            <label for="InputNombre">Nombre</label>
            <input type="text" class="form-control" id="nombre" required>
        </div>
        <div class="form-group">
            <label for="InputApellido">Apellido</label>
            <input type="text" class="form-control" id="apellido" required>
        </div>
        <div class="form-group">
            <label for="InputDni">Dni</label>
            <input type="text" class="form-control" id="dni" required>
        </div>
        <div class="form-group">
            <label for="InputCuenta">Numero de Cuenta</label>
            <input type="text" class="form-control" id="cuenta" required>
        </div>
        <div class="form-group">
            <label for="InputCategoria">Categoria</label>
            <select class="form-control" id="categoria" required>
                <option value="1">Junior</option>
                <option value="2">Semi-Senior</option>
                <option value="3">Senior</option>
            </select>
        </div>
        <div class="form-group">
            <label for="InputNacimiento">Fecha de Nacimiento</label>
            <input type="date" class="form-control" id="nacimiento" required>
        </div>
        <button class="btn">Agregar</button>
    </form>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
